from odoo import api, fields, models

# 引入odoo内置的板块

class Modify_check(models.Model):
    _name = 'modify.check'
    # 相当于给此模型一个唯一id，之后很多地方需要用到
    _description = '修改登记'
    # 主客
    host_guest = fields.Char(
        string='主客',
        required=True
    )
    # 姓名
    name = fields.Char(
        string='姓名',
        required=True
    )
    gender = fields.Selection(
        [
            ('0', '男'),
            ('1', '女'),
        ],
        "性别",
         default="1",
    )
    age = fields.Integer(
        "年龄",
    )
    # 证件类型
    document_type = fields.Char(
        '证件类型',
        required=True
    )
    # 证件编号
    id_number = fields.Integer(
        '证件编号',
        required=True
    )
    tel = fields.Char(
        "电话",
        required=True
    )
    address = fields.Char(
        "地址",
        required=True
    )





